Builder
Deprecated
Scheduled for removal in 0.6.0
A ValidatedEntityAttribute builder
Author
fzzyhmstrs
Since
0.3.1
Parameters
attributeId
Identifier - the registry ID for the default EntityAttribute. This can't be the attribute itself, as it will be serialized, potentially before the registry is built.
lockAttribute
Boolean - If true, the user won't be able to change the stored Attribute value
Functions
Link copied to clipboard
fun amount(amount: Double, min: Double = -Double.MAX_VALUE, max: Double = Double.MAX_VALUE): ValidatedEntityAttribute.Builder
Link copied to clipboard
Link copied to clipboard
The unique identifier for this attribute instance
Link copied to clipboard
fun operation(operation: EntityAttributeModifier.Operation, lockOperation: Boolean = false): ValidatedEntityAttribute.Builder